import request from '@/utils/request'

// 查询其它上传列表
export function listOther(query) {
  return request({
    url: '/result/other/list',
    method: 'get',
    params: query
  })
}

// 查询其它上传详细
export function getOther(id) {
  return request({
    url: '/result/other/' + id,
    method: 'get'
  })
}
/**
 * 根据多个id批量查询其它信息
 */
export function getOtherByIds(ids) {
  return request({
    url: `/result/other/getOtherByIds`,
    method: 'get',
    params: { ids: ids.join(',') } // 将数组转换为逗号分隔的字符串
  });
}
// 新增其它上传
export function addOther(data) {
  return request({
    url: '/result/other',
    method: 'post',
    data: data
  })
}

// 修改其它上传
export function updateOther(data) {
  return request({
    url: '/result/other',
    method: 'put',
    data: data
  })
}

// 删除其它上传
export function delOther(id) {
  return request({
    url: '/result/other/' + id,
    method: 'delete'
  })
}
/**
 * 批量导出其它信息
 */
export function exportOther(params) {
  return request.post(`/result/other/export/other`, params, {
    responseType: 'blob'
  });
}
